//
//  SZUserAccount.h
//  Weibo
//
//  Created by Zahi on 2017/7/26.
//  Copyright © 2017年 Zahi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SZUserAccount : NSObject


/**访问令牌**/
@property (nonatomic, copy) NSString *access_token;

/**令牌生命周期**/
@property (nonatomic, assign) NSInteger expires_in;

/**过期日期**/
@property (nonatomic, strong) NSDate *expiersDate;

/**授权用户的UID**/
@property (nonatomic, assign) NSInteger uid;

/**用户昵称**/
@property (nonatomic, copy) NSString *name;
/**用户头像**/
@property (nonatomic, copy) NSString *avatar_large;


/// 保存用户对象
- (void)saveAccount;

/// 读取用户的对象
+ (instancetype)readAccount;


- (instancetype)initWithDict:(NSDictionary *)dict;

+ (instancetype)accountWithDict:(NSDictionary *)dict;

 


@end
